public class NGuessnumber {
    int [] answers = new int[4];

    public int [] generateAnswers(){
       answers[0] = int  = (int)(Math.random()*10);
       answers[1] = int  = (int)(Math.random()*10);
        answers[2] = int  = (int)(Math.random()*10);
        answers[3] = int  = (int)(Math.random()*10);
        return  answers;
    }
    public static void main(String[] args){
        NGuessnumber ngn = new NGuessnumber();
        int [] answers = ngn.generateAnswers();
        for (int i =0;i<answers.length;i++){
            System.out.println(answers[i]);
        }
    }
}
